package userInterface;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.*;
import javax.swing.*;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;
public class UserPanel extends JPanel{
   ImageIcon imageIcon=new ImageIcon("images/photo.jpg");
   Image image=imageIcon.getImage();
   public UserPanel(){
		setPreferredSize(new Dimension(275, 450));
		setBorder(new LineBorder(Color.BLACK));
		setBackground(Color.gray);
		setLayout(null);
		//initUserPanel(userPanel);
		//container.add(allPanel,BorderLayout.WEST);
		//container.add(userPanel,BorderLayout.EAST);
   }
   
  public void paintComponent(Graphics g){
	   super.paintComponent(g);
	   if(image!=null){
		   //System.out.println("here");
		   g.drawImage(image, 0,0,getWidth(), getHeight(),this);
	   }
   }
}
